package com.nekoneko.nekonekodemo;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

/**
 * Created by 想法的猫 on 2018/1/12 0012.
 */

public class HandlerThread extends Thread {
    Handler handler;

    @Override
    public void run() {
        super.run();
        Looper.prepare();
        handler = new Handler() {
            @Override
            public void handleMessage(Message msg) {
                super.handleMessage(msg);
            }
        };

        Looper.loop();
    }

    public Handler getHandler() {
        return handler;
    }

    public void setHandler(Handler handler) {
        this.handler = handler;
    }
}
